#include <iostream>
using namespace std;

class Father {
		int nPrivate;
	public:
		int nPublic;
	protected:
		int nProtected;
};

class Son: public Father {
		void AccessFather() {
			nPublic = 1;
			nPrivate = 1;
			nPublic = 1;
			Son f;
			f.nProtected = 1;
		}
};

int main() {
	Father f;
	Son s;
	f.nPublic = 1;
	s.nPublic;
	f.nProtected = 1;
	f.nProtected = 1;
	s.nProtected = 1;
	s.nPrivate = 1;
	return 0;
}